home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
snack_attack.swf
/
scripts
/
DefineButton2_336
/
BUTTONCONDACTION on(keyPress Right).as
< prev
Wrap
Text File
|
2010-11-09
|
569b
|
23 lines
on(keyPress "<Right>"){
temptar = eval("/:currtar");
if(eval("/:currtar") == eval("/:currplace"))
{
set("/:currtar",eval("/:currtar") + "1");
}
else if(eval("/:currtar") < eval("/:currplace"))
{
temp = eval("/:currtar");
set("/:currtar",eval("/:currplace"));
set("/:currplace",temp);
}
if("3" < eval("/:currtar"))
{
set("/:currtar","3");
}
set("/:tarx",eval("/:tar" add eval("/:currtar")));
if(temptar != eval("/:currtar"))
{
set("/:force",eval("/:force") - "12");
}
}